
<%@page import="upeu.edu.to.AlumnoTO"%>
<%@page import="java.util.List"%>
<%@include file="../../libs/PictureCharts.jsp" %>

<html>
    <head>
        <script type="text/javascript" src="../../Recursos/js/PictureCharts.js"></script>         
    </head>
<body class="body" >   

<div  id="datagrid">
<center>
		<%
           List<AlumnoTO>  listaAlu=null;
              listaAlu=(List<AlumnoTO>)request.getSession().getAttribute("DataEstadisticaEap");    
                 int i=0;
                 
	      	String strXML = "<chart caption='Universidad Peruana Uni&oacute;n' subCaption='Usuarios Registrados por Carrera'  "
                        + " lineThickness='1' showValues='1' rotateValues='1' placeValuesInside='1' formatNumberScale='0' anchorRadius='2'  "
                        + " divLineAlpha='20' divLineColor='CC3300' divLineIsDashed='1' showAlternateHGridColor='1'"
                        + " alternateHGridColor='CC3300' shadowAlpha='40' numvdivlines='5' bgColor='FFFFFF,CC3300'"
                        + " bgAngle='270' bgAlpha='10,10' labelDisplay='Rotate' slantLabels='1' chartLeftMargin='10' chartTopMargin='5' "
                        + " chartRightMargin='10' chartBottomMargin='5' captionPadding='10' xAxisNamePadding='5'>";   	       
                        
                        try{	
                        for(AlumnoTO to: listaAlu){
			if(i<=15){			
			strXML += "<set label='"+to.getEap()+"' value='"+to.getCantidad()+"' tooltext='"+to.getEap()+" "+to.getCantidad()+"' />";
			i++;
			}                        
                        }   		
		
			}catch(Exception e){
				throw new Exception(""+e.getMessage());
			}
                        
                        
                strXML += "<styles>";
        	strXML += "<definition>";
        	strXML += "<style name='myHTMLFont' type='font' font='Arial' size='12' color='FF5904' isHTML='1' />";
        	strXML += "</definition>";
                strXML += "<application>";
                strXML += "<apply toObject='DATALABELS' styles='myHTMLFont' />";
                strXML += "<apply toObject='ToolTip' styles='myHTMLFont' />";
                strXML += "</application>";
                strXML += "</styles>";
    		strXML += "</chart>";
                String chartCode= createChart("../../Recursos/charts/Column3D.swf", "", strXML, "productSales", 500, 300, false, false);
%>
<%=chartCode%>


</center> 
</div>

</body>
</html>